<?php
include_once('../etc/db.inc.php');
#echo $db_host;
#echo $db_user;
#echo $db_pass;
#echo $db_name;

$mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name);

/* check connection */
if ($mysqli->connect_errno) {
    printf("Connect failed: %s\n", $mysqli->connect_error);
    exit();
}

//Test Code
echo "Database Connected!\n";

/* close connection */
#$mysqli->close();
?>
